#!/bin/sh

export CFLG="-D___SYS_I486 -D___OS_LIN"
export LIBS="-lm -ldl -lpthread"
export LIBS="$LIBS -lgcc -lc -lgcc"
if [ "$1" == "" ]; then
  echo "Args: <name>"
  exit 0
fi
export NAM="$1"
shift

gcc -s -O2 -Wall -o $NAM.exe $CFLG $NAM.c $LIBS
